<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>懒人家居后台管理</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	overflow:hidden;
	background-color:#9EBFF7;
}
.STYLE3 {
	color: #314560; 
	font-size: 12px; 
}
.error{
	color:red;
	padding-top:2px;
}
-->
</style>
<script language="javascript">
function init(){
	document.getElementById("username").focus();
}

function enter(e,inputid){
	var key = window.event ? e.keyCode : e.which;
	if(key==13){
	  if(inputid=="btnSubmit"){
	  	document.getElementById("formLogin").submit();
		return true;
	  }
	  document.getElementById(inputid).focus();
	}
}

function submitForm(){
	document.getElementById("formLogin").submit();
	return;
}

function resetForm(){
	document.getElementById("formLogin").reset();
}
</script>
</head>
<body onLoad="init()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#E4EFFF">&nbsp;</td>
  </tr>
  <tr>
    <td height="608" background="images/login/login_03.gif"><table width="862" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="266" background="images/login/login_04.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="95"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="424" height="95" background="images/login/login_06.gif">&nbsp;</td>
            <td width="183" background="images/login/login_07.gif">
			<form id="formLogin" name="formLogin" method="post" action="login.action">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="21%" height="25"><div align="center"><span class="STYLE3">用户</span></div></td>
                <td width="79%" height="25"><input type="text" name="username" id="username"  style="height:15px; width:130px; border:solid 1px #ACC0DB; font-size:12px; color:#81b432;ime-mode: disabled"
						  ondragenter="return false" onpaste="return !clipboardData.getData('text').match(/[^\x00-\xff]/)" onkeypress="enter(event,'password')"></td>
              </tr>
              <tr>
                <td height="20"><div align="center"><span class="STYLE3">密码</span></div></td>
                <td height="20"><input type="password" name="password" id="password"  onKeyPress="enter(event,'btnSubmit')" style="height:15px; width:130px; border:solid 1px #ACC0DB; font-size:12px; color:#81b432;"></td>
              </tr>
              <tr>
                <td height="30">&nbsp;</td>
                <td height="30" valign="bottom"><img src="images/login/dl.gif" width="81" height="22" border="0" usemap="#Map"></td>
              </tr>
            </table></form></td>
            <td width="255" background="images/login/login_08.gif">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="247" valign="top" background="images/login/login_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="22%" height="30">&nbsp;</td>
            <td width="56%">&nbsp;</td>
            <td width="22%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="30" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="center" valign="top" class="error"><s:actionerror /></td>
              </tr>
            </table></td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#9EBFF7">&nbsp;</td>
  </tr>
</table>

<map name="Map"><area shape="rect" coords="3,3,36,19" href="#" onClick="submitForm()"><area shape="rect" coords="40,3,78,18" href="#" onClick="resetForm()"></map>
</body>
</html>
